package org.hfy.exception;

/**
 * 业务异常
 * 
 * @author hfy
 * @version 1.0
 */
public class BusinessException extends RuntimeException {

    private int code = 500;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
} 